package com.dc.designPattern._24_servant.impl;

/**
 * Description: 雇工模式_客户端
 * @author: gdc
 * @date: 2021/8/20
 * @version 1.0
 */
public class Client {

    public static void main(String[] args){
        // 厨师清洁厨房
        Cleaner cookie = new Cleaner();
        cookie.clean(new Kitchen());

        // 园丁清洁花园
        Cleaner gardener = new Cleaner();
        gardener.clean(new Garden());

        // 裁缝清洁衣服
        Cleaner tailer = new Cleaner();
        tailer.clean(new Cloth());
    }
}
